package com.herench.bunch.emr.handler;

import com.herench.bunch.commons.annotation.Handler;
import com.herench.bunch.commons.support.AbstractMessageHandler;
import com.herench.bunch.emr.agent.EmrAgent;
import com.herench.bunch.emr.convert.LisItemDictConvert;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/**
 * @author chentong on 19-03-22 上午10:30
 * @email chentong@herench.com
 */


@Handler(code = "600090", name = "检验编码字典", messageConvertClass = LisItemDictConvert.class)
public class LisItemDictHandler extends AbstractMessageHandler {

    @Autowired
    private EmrAgent emrAgent;

    @Override
    @SuppressWarnings("unchecked")
    protected Object proxyInvoke(Object inMessage) throws Exception {
//        Map<String,Object> params = (Map<String, Object>) inMessage;
        List<Map<String, Object>> paramList = emrAgent.queryLisItemDict();
        return paramList;
    }
}
